<h1>Listing category_items</h1>

<table>
  <tr>
    <th>User</th>
    <th>Category</th>
    <th>Number</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @category_items.each do |category_item| %>
  <tr>
    <td><%= category_item.user_id %></td>
    <td><%= category_item.category_id %></td>
    <td><%= category_item.number %></td>
    <td><%= link_to 'Show', category_item %></td>
    <td><%= link_to 'Edit', edit_category_item_path(category_item) %></td>
    <td><%= link_to 'Destroy', category_item, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Category item', new_category_item_path %>
